package com.bizfx.events
{	
	import flash.events.Event;
	
	import com.bizfx.component.views.ViewCommand;

	public class CommandRaiseEvent extends Event
	{
		private var _viewCommand:ViewCommand;
		
		/**
		 * 激发事件的ViewCommand
		 */
		public function get viewCommand(): ViewCommand
		{
			return _viewCommand;  
		}
		
		public function set viewCommand(value: ViewCommand):void
		{
			_viewCommand = value;
		}
		
		public function CommandRaiseEvent(viewCommand:ViewCommand)
		{
			super(Command_Raise);
			if (viewCommand != null)
			{
				_viewCommand = viewCommand;
			}
		}
		
		public static const Command_Raise:String = "commandRaise";
	}
}